import onnx

def analyze(onnxfile, **kwargs):
    model = onnx.load(onnxfile)
    version = kwargs['version']

    for opset in model.opset_import:
        if opset.version == version:
            print('opset analyze success----------')
            return True

    return False